package cn.edu.ujn.project.supermarket.domain;

import cn.edu.ujn.project.common.annotation.Excel;
import cn.edu.ujn.project.common.core.domain.BaseEntity;

/**
 * vip余额对象 vip_user
 * 
 * @author zhaomh
 * @date 2023-11-13
 */
public class VipUser extends BaseEntity
{
    protected static final long serialVersionUID = 1L;

    public void setUserId(Long userId) {
		this.userId = userId;
	}

	/** 会员号 */
    @Excel(name = "会员号")
    protected String vipId;

    /** 余额 */
    @Excel(name = "余额")
    protected Double balance;

    /** 对应系统用户的主键 */
    @Excel(name = "对应系统用户的主键")
    protected Long userId;

    public void setVipId(String vipId) 
    {
        this.vipId = vipId;
    }

    public String getVipId() 
    {
        return vipId;
    }
    public void setBalance(Double balance) 
    {
        this.balance = balance;
    }

    public Double getBalance() 
    {
        return balance;
    }
  

    public VipUser(VipUser v) {
		super();
		this.vipId =v.vipId;
		this.balance = v.balance;
		this.userId = v.userId;
	}
    public VipUser(String vipId, Double balance, Long userId) {
		super();
		this.vipId = vipId;
		this.balance = balance;
		this.userId = userId;
	}

	public VipUser() {
		super();
	}

	@Override
	public String toString() {
		return "VipUser [vipId=" + vipId + ", balance=" + balance + ", userId=" + userId + "]";
	}

	public Long getUserId() {
		return userId;
	}
}
